if __name__ == "__main__":
    data = []
    data_sum = 0
    f = open("sensor-data-1k.txt", "r")
    for item in f.readlines():
        data.append(item.split(" ")[-2])
    for i in data:
        data_sum += float(i)
    print(f"{data_sum/len(data):.2f}")
    f.close()
